package com.itheima.service;

import com.itheima.common.Com.Category;
import com.itheima.common.pojo.PageInfo;
import com.itheima.common.vo.CategoryDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CategoryService {
    boolean add(Category category);

    boolean update(Category category);

    boolean delete(String id);

    List<Category> getall(Integer type);

    PageInfo<Category> page(Integer page, Integer pageSize);

    List<CategoryDto> list();

    /**
     *
     */
}
